(window["webpackJsonp"] = window["webpackJsonp"] || []).push([
    ["app"], {
        0: function(e, t, n) {
            e.exports = n("56d76")
        },
        "56d76": function(e, t, n) {
            "use strict";
            n.r(t);
            n("e44b"), n("6648"), n("5f54"), n("f0e6");
            var o = n("6e6d"),
                a = (n("aa93"), n("7893")),
                r = n.n(a),
                i = (n("610a"), n("ed36")),
                u = n.n(i),
                c = (n("b20f"), function() {
                    var e = this,
                        t = e.$createElement,
                        n = e._self._c || t;
                    return n("div", {
                        attrs: {
                            id: "app"
                        }
                    }, [n("router-view")], 1)
                }),
                s = [],
                d = {
                    name: "App"
                },
                f = d,
                m = n("623f"),
                l = Object(m["a"])(f, c, s, !1, null, null, null),
                p = l.exports,
                b = n("52c1"),
                g = (n("cc57"), {
                    sidebar: function(e) {
                        return e.app.sidebar
                    },
                    device: function(e) {
                        return e.app.device
                    },
                    token: function(e) {
                        return e.user.token
                    },
                    avatar: function(e) {
                        return e.user.avatar
                    },
                    name: function(e) {
                        return e.user.name
                    }
                }),
                h = g,
                v = n("8c92"),
                E = n.n(v),
                T = {
                    sidebar: {
                        opened: !E.a.get("sidebarStatus") || !!+E.a.get("sidebarStatus"),
                        withoutAnimation: !1
                    },
                    device: "desktop"
                },
                S = {
                    TOGGLE_SIDEBAR: function(e) {
                        e.sidebar.opened = !e.sidebar.opened, e.sidebar.withoutAnimation = !1, e.sidebar.opened ? E.a.set("sidebarStatus", 1) : E.a.set("sidebarStatus", 0)
                    },
                    CLOSE_SIDEBAR: function(e, t) {
                        E.a.set("sidebarStatus", 0), e.sidebar.opened = !1, e.sidebar.withoutAnimation = t
                    },
                    TOGGLE_DEVICE: function(e, t) {
                        e.device = t
                    }
                },
                w = {
                    toggleSideBar: function(e) {
                        var t = e.commit;
                        t("TOGGLE_SIDEBAR")
                    },
                    closeSideBar: function(e, t) {
                        var n = e.commit,
                            o = t.withoutAnimation;
                        n("CLOSE_SIDEBAR", o)
                    },
                    toggleDevice: function(e, t) {
                        var n = e.commit;
                        n("TOGGLE_DEVICE", t)
                    }
                },
                k = {
                    namespaced: !0,
                    state: T,
                    mutations: S,
                    actions: w
                },
                A = n("83d6"),
                _ = n.n(A),
                x = _.a.showSettings,
                O = _.a.fixedHeader,
                B = _.a.sidebarLogo,
                G = {
                    showSettings: x,
                    fixedHeader: O,
                    sidebarLogo: B
                },
                L = {
                    CHANGE_SETTING: function(e, t) {
                        var n = t.key,
                            o = t.value;
                        e.hasOwnProperty(n) && (e[n] = o)
                    }
                },
                I = {
                    changeSetting: function(e, t) {
                        var n = e.commit;
                        n("CHANGE_SETTING", t)
                    }
                },
                P = {
                    namespaced: !0,
                    state: G,
                    mutations: L,
                    actions: I
                },
                N = n("f753"),
                y = n.n(N),
                C = "vue_admin_template_token";

            function M() {
                return E.a.get(C)
            }

            function R(e) {
                return E.a.set(C, e)
            }

            function D() {
                return E.a.remove(C)
            }
            var H = y.a.create({
                baseURL: "/prod-api",
                timeout: 5e3
            });
            H.interceptors.request.use((function(e) {
                return te.getters.token && (e.headers["X-Token"] = M()), e
            }), (function(e) {
                return console.log(e), Promise.reject(e)
            })), H.interceptors.response.use((function(e) {
                var t = e.data;
                return 2e4 !== t.code ? (Object(a["Message"])({
                    message: t.message || "Error",
                    type: "error",
                    duration: 5e3
                }), 50008 !== t.code && 50012 !== t.code && 50014 !== t.code || a["MessageBox"].confirm("You have been logged out, you can cancel to stay on this page, or log in again", "Confirm logout", {
                    confirmButtonText: "Re-Login",
                    cancelButtonText: "Cancel",
                    type: "warning"
                }).then((function() {
                    te.dispatch("user/resetToken").then((function() {
                        location.reload()
                    }))
                })), Promise.reject(new Error(t.message || "Error"))) : t
            }), (function(e) {
                return console.log("err" + e), Object(a["Message"])({
                    message: e.message,
                    type: "error",
                    duration: 5e3
                }), Promise.reject(e)
            }));
            var j = H;

            function V(e) {
                return j({
                    url: "/user/login",
                    method: "post",
                    data: e
                })
            }

            function K(e) {
                return j({
                    url: "/user/info",
                    method: "get",
                    params: {
                        token: e
                    }
                })
            }

            function z() {
                return j({
                    url: "/user/logout",
                    method: "post"
                })
            }
            var F = n("1e6f");
            o["default"].use(F["a"]);
            var J = [{
                    path: "/404",
                    component: function() {
                        return n.e("chunk-238c0fdc").then(n.bind(null, "8cdb"))
                    },
                    hidden: !0
                }, {
                    path: "",
                    redirect: "homePage",
                    component: function() {
                        return n.e("chunk-388cc499").then(n.bind(null, "fb6f"))
                    }
                }, {
                    path: "/homePage",
                    component: function() {
                        return n.e("chunk-388cc499").then(n.bind(null, "fb6f"))
                    },
                    name: "homePage"
                }, {
                    path: "*",
                    redirect: "/404",
                    hidden: !0
                }],
                U = function() {
                    return new F["a"]({
                        scrollBehavior: function() {
                            return {
                                y: 0
                            }
                        },
                        routes: J
                    })
                },
                q = U();

            function W() {
                var e = U();
                q.matcher = e.matcher
            }
            var X = q,
                Y = {
                    token: M(),
                    name: "",
                    avatar: ""
                },
                $ = {
                    SET_TOKEN: function(e, t) {
                        e.token = t
                    },
                    SET_NAME: function(e, t) {
                        e.name = t
                    },
                    SET_AVATAR: function(e, t) {
                        e.avatar = t
                    }
                },
                Q = {
                    login: function(e, t) {
                        var n = e.commit,
                            o = t.username,
                            a = t.password;
                        return new Promise((function(e, t) {
                            V({
                                username: o.trim(),
                                password: a
                            }).then((function(t) {
                                var o = t.data;
                                n("SET_TOKEN", o.token), R(o.token), e()
                            })).catch((function(e) {
                                t(e)
                            }))
                        }))
                    },
                    getInfo: function(e) {
                        var t = e.commit,
                            n = e.state;
                        return new Promise((function(e, o) {
                            K(n.token).then((function(n) {
                                var a = n.data;
                                a || o("Verification failed, please Login again.");
                                var r = a.name,
                                    i = a.avatar;
                                t("SET_NAME", r), t("SET_AVATAR", i), e(a)
                            })).catch((function(e) {
                                o(e)
                            }))
                        }))
                    },
                    logout: function(e) {
                        var t = e.commit,
                            n = e.state;
                        return new Promise((function(e, o) {
                            z(n.token).then((function() {
                                t("SET_TOKEN", ""), D(), W(), e()
                            })).catch((function(e) {
                                o(e)
                            }))
                        }))
                    },
                    resetToken: function(e) {
                        var t = e.commit;
                        return new Promise((function(e) {
                            t("SET_TOKEN", ""), D(), e()
                        }))
                    }
                },
                Z = {
                    namespaced: !0,
                    state: Y,
                    mutations: $,
                    actions: Q
                };
            o["default"].use(b["a"]);
            var ee = new b["a"].Store({
                    modules: {
                        app: k,
                        settings: P,
                        user: Z
                    },
                    getters: h
                }),
                te = ee,
                ne = (n("0c97"), n("d6b1")),
                oe = n.n(ne),
                ae = n("4f11");
            o["default"].use(oe.a, {
                defaultOptions: {
                    zIndex: 9999,
                    inline: !1,
                    button: !0,
                    navbar: !1,
                    title: !1,
                    toolbar: !0,
                    tooltip: !1,
                    movable: !0,
                    zoomable: !0,
                    rotatable: !0,
                    scalable: !1,
                    transition: !0,
                    fullscreen: !1,
                    keyboard: !1
                }
            }), o["default"].use(ae["a"]), o["default"].use(r.a, {
                locale: u.a
            }), o["default"].config.productionTip = !1, new o["default"]({
                el: "#app",
                router: X,
                store: te,
                render: function(e) {
                    return e(p)
                }
            })
        },
        "83d6": function(e, t) {
            e.exports = {
                title: "web数据可视化",
                fixedHeader: !1,
                sidebarLogo: !1
            }
        },
        b20f: function(e, t, n) {
            e.exports = {
                menuText: "#bfcbd9",
                menuActiveText: "#409EFF",
                subMenuActiveText: "#f4f4f5",
                menuBg: "#304156",
                menuHover: "#263445",
                subMenuBg: "#1f2d3d",
                subMenuHover: "#001528",
                sideBarWidth: "210px"
            }
        }
    },
    [
        [0, "runtime", "chunk-elementUI", "chunk-libs"]
    ]
]);